package com.river.boot.biz.model.form;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 菜品分类表单对象
 *
 * @author JiangCheng Xiang
 * @since 2025-04-24 17:12
 */
@Getter
@Setter
@Schema(description = "菜品分类表单对象")
public class ProductCategoryForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "菜品分类ID")
    private Long id;

    @Schema(description = "店铺ID")
    @NotNull(message = "店铺ID不能为空")
    private Long shopId;

    @Schema(description = "分类名称")
    @NotBlank(message = "分类名称不能为空")
    @Size(max = 50, message = "分类名称长度不能超过50个字符")
    private String name;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "状态 1-显示 0-隐藏")
    private Integer status;
}
